package cn.raven.handler;

import cn.raven.entity.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class UserBlock {
    public static User getUserBlock(@PathVariable Long id, BlockException exception){
        exception.printStackTrace();
        return User.builder().id(-1L).name("限流").intor("降级了 ").build();
    }
}
